const { get } = require('../common/ajax');
const { MEMBER_URL } = require('../constants/url');

/**
 * 经纬度匹配地址信息
 * @param {Number} latitude 经度
 * @param {Number} longitude 纬度
 */
const matchAddress = async (latitude, longitude) => {
    const res = await get(MEMBER_URL.match, {
        latitude,
        longitude,
    });
    return res.data;
};

module.exports = {
    matchAddress,
};